//By Heino Kronenberg of Bern, Switzerland
//0Beginning of "fieldbook.adf"

// FieldBook Application
// APPLICATION application_name CALLED rcu_application_alias
application "FieldBook" called "FieldBook" with options { "nofolders" }

// SOUP soup_name CALLED rcu_soup_alias OF application_name
soup "fieldbook" called "FieldBook Data" of "FieldBook" range "textRange"

overview "fieldbook:id" called "By ID" of "FieldBook" queries "id" contains
 { column "ID" width 120 is id
   column "X" width 50 is x
   column "Y" width 50 is y
 }
 
overview "fieldbook:type" called "By Type" of "FieldBook" queries "|type|" contains
 { column "Type"  width  60 is |type|
   column "ID"    width 120 is id
   column "Alias" width  50 is alias
   column "X" width 50 is x
   column "Y" width 50 is y
 }

class "fieldbookentry" called "FieldBook Entry" of "fieldbook" contains
{ |id|: string called "ID"
  |CreationTime|: string called "CreationTime"
  |ModificationTime|: string called "ModificationTime"
  |SamplingTime|: string called "Date"

  |type|: string called "Type"

  alias: string called "Alias"
  Photo: real called "Photo"
  notes: string called "Notes"
  x: integer called "x"
  y: integer called "y"
  z: integer called "z"
  Formation: string called "Formation"
  Age: string called "Age"
  TectonicUnit: string called "TectonicUnit"
  Lithology1: string called "Lithology1"
  Lithology2: string called "Lithology2"
  Generation: string called "Generation"
  ContyctType: string called "ContactType"
  ShearSense: string called "ShearSense"
  Vergence: string called "Vergence"
  FlowDirection: integer called "FlowDirection"

  // orientations were arrays - converted to single integers
  // to work properly with RCU 2.1 for Macintosh
  OrientationLinearAzimuth:  integer called "O.Lin.Az"
  OrientationLinearDip:      integer called "O.Lin.Dip"
  OrientationLinearQuality:  string  called "O.Lin.Q"
  OrientationPlanarAzimuth:  integer called "O.Plan.Az"
  OrientationPlanarDip:      integer called "O.Plan.Dip"
  OrientationPlanarQuality:  string  called "O.Plan.Q"
  OrientationRiedel1Azimuth: integer called "O.R1.Az"
  OrientationRiedel1Dip:     integer called "O.R1.Dip"
  OrientationRiedel2Azimuth: integer called "O.R2.Az"
  OrientationRiedel2Dip:     integer called "O.R2.Dip"
  OrientationSplayAzimuth:   integer called "O.S.Az"
  OrientationSplayDip:       integer called "O.S.Dip"
}


